package 行为型模式.策略模式;

public class Client {
    public static void main(String[] args) {
        //春节来了,使用春节促销活动
        SaleMan saleMan = new SaleMan(new StrategyA());
        saleMan.salesManShow();
        System.out.println("________________________");

        //中秋节
        saleMan = new SaleMan(new StrategyB());
        saleMan.salesManShow();
        System.out.println("________________________");

        //圣诞节
        saleMan = new SaleMan(new StrategyC());
        saleMan.salesManShow();
        System.out.println("________________________");
    }
}
